package com.wn26.shopczpro.service;

import java.sql.SQLException;
import java.util.List;

import com.wn26.shopczpro.dao.GoodsDao;
import com.wn26.shopczpro.dao.GoodsDaoImpl;
import com.wn26.shopczpro.entity.Goods;

public class GoodsServiceImpl implements GoodsService {
	
	private GoodsDaoImpl gdi;
	
	public GoodsServiceImpl() {
		gdi = new GoodsDaoImpl();
	}

	@Override
	public List<Goods> listgoodsService() throws SQLException {
		return gdi.listgoodsDao();
	}

	public List<Goods> goodsOrderListService() throws SQLException {
		
		return gdi.goodsOrderListDao();
	}

}
